package java56_8;

import java.util.Scanner;

public class DinnerOrdering {

	public static void main(String[] args) {
		//
		Scanner in = new Scanner(System.in);
		boolean isExit = false;
		int choice = 0;
		while (!isExit) {
			System.out.println("****************");
			System.out.println("1:订餐\n2:查看\n3:签收\n4:删除\n5:点赞\n6:退出");
			System.out.println("****************");
			System.out.println("请选择：");
			choice = in.nextInt();
			switch (choice) {
			case 1:
				System.out.println("我要订餐");
				break;
			case 2:
				System.out.println("查看餐袋");
				break;
			case 3:
				System.out.println("签收订单");
				break;
			case 4:
				System.out.println("删除订单");
				break;
			case 5:
				System.out.println("我要点赞");
				break;
			case 6:
				System.out.println("退出系统");
				isExit = true;
				break;
			default:
				System.out.println("没有对应的选项");
				break;
			}
			if (!isExit) {
				System.out.println("输入0返回");
				in.nextInt();
			} else
				break;
		}
	}

}
